class Person:
	'''Represents a persion.'''
	population = 0                 ##class var

	def __init__(self, name):
		'''Initializes the person's data.'''
		self.name = name           ##obj var
		print '(Initializing %s)' %self.name
		Person.population += 1

	def __del__(self):
		'''I am dying.'''
		print '%s says bye' %self.name
		Person.population -= 1
		if Person.population == 0:
			print 'I am the last one.'
		else:
			print 'There are still %d people left.' %Person.population

 	def sayHi(self):
 		'''Greeting by the person.

 		Really, that's all it does.'''
 		print 'Hi, my name is %s' %self.name

 	def howMany(self):
 		'''Prints the current population.'''
 		if Person.population == 1:
 			print 'I am the only person here.'
 		else:
 			print 'We have %d persons here.' %Person.population

kathy = Person('Kathy')
kathy.sayHi()
kathy.howMany()

cgg = Person('cgg')
cgg.sayHi()
cgg.howMany()

kathy.sayHi()
kathy.howMany()

print Person.__doc__
print Person.__init__.__doc__
print Person.__del__.__doc__
print Person.sayHi.__doc__
print Person.howMany.__doc__


		